package string;

import org.junit.Test;

public class StringClass {
    @Test
    public void test1() {
        String s1 = "abc";
        String s2 = "abc";
        System.out.println(s1 == s2);

        String s3 = new String("abc");
        System.out.println(s1 == s3);

        String s4 = new String("abc");
        System.out.println(s3 == s4);

        s4.toString();
        StringBuilder stringBuilder = new StringBuilder("abc");
        System.out.println(stringBuilder.toString());
    }
}
